package com.skyworthclub.competition.beans;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author li
 * @since 2019-06-23
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tbl_role")
public class Role extends Model<Role> {

    private static final long serialVersionUID = 1L;

    /**
     * 自增id
     */
    @TableId(value = "role_id", type = IdType.AUTO)
    private Integer roleId;
    /**
     * 角色名称
     */
    private String roleName;
    /**
     * 简单描述
     */
    private String roleDesc;

    @Override
    protected Serializable pkVal() {
        return this.roleId;
    }

}
